<?php
/**
 * Created by PhpStorm.
 * User: eeo
 * Date: 2017/7/5
 * Time: 17:24
 */

namespace App\Http\Controllers\Foundation;
use App\Model\Eeoapi\Eeoclasstype;
use Laravel\Lumen\Routing\Controller as BaseController;

use App\Http\Controllers\MessagePacket;

class EeoClasstypeController extends BaseController
{
    use MessagePacket;

    function gets()
    {
        $data = Eeoclasstype::all();

        if(empty($data)){
            return $this->fail(false, '数据不存在');
        }
        return $this->success($data);
    }
}